﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Warensoft.Unity.Communication.Client.Models;

namespace Warensoft.Unity.Communication.Client.OData
{
    public class ODataQuery
    {
        protected StringBuilder sb = new StringBuilder();
        public string QueryString
        {
            get
            {
                return this.sb.ToString();
            }
        }
        public ODataQuery Equals<T>(string propertyName, T value)
        {
            this.sb.Append(propertyName);
            this.sb.Append(" eq ");
            return this;
        }
        public override string ToString()
        {
            return this.QueryString;
        }
        //public static string FieldEqual<T>(string propertyName,T value)
        //{
        //    switch (value.GetType().Name)
        //    {
        //        case "":

        //        default:
        //            break;
        //    }
        //}
        
    }
}
